package com.zhiliao.state.demo4;

public class BookedOrderState extends OrderState {

    public BookedOrderState(int state) {
        super(state);
    }

    @Override
    public boolean checkState() {
        context.setOrderState(new InitOrderState(0));
        return context.getOrderState().getState() == 0;
    }
}
